// Licensed to Elasticsearch B.V under one or more agreements.
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information.
//
// ███╗   ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
// ████╗  ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
// ██╔██╗ ██║██║   ██║   ██║   ██║██║     █████╗
// ██║╚██╗██║██║   ██║   ██║   ██║██║     ██╔══╝
// ██║ ╚████║╚██████╔╝   ██║   ██║╚██████╗███████╗
// ╚═╝  ╚═══╝ ╚═════╝    ╚═╝   ╚═╝ ╚═════╝╚══════╝
// ------------------------------------------------
//
// This file is automatically generated.
// Please do not edit these files manually.
//
// ------------------------------------------------

#nullable restore

using Elastic.Clients.Elasticsearch.Serverless.Fluent;
using Elastic.Clients.Elasticsearch.Serverless.Serialization;
using Elastic.Transport.Products.Elasticsearch;
using System;
using System.Collections.Generic;
using System.Text.Json.Serialization;

namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning;

public sealed partial class UpdateDatafeedResponse : ElasticsearchResponse
{
	[JsonInclude, JsonPropertyName("aggregations")]
	public IReadOnlyDictionary<string, Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation>? Aggregations { get; init; }
	[JsonInclude, JsonPropertyName("authorization")]
	public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DatafeedAuthorization? Authorization { get; init; }
	[JsonInclude, JsonPropertyName("chunking_config")]
	public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ChunkingConfig ChunkingConfig { get; init; }
	[JsonInclude, JsonPropertyName("datafeed_id")]
	public string DatafeedId { get; init; }
	[JsonInclude, JsonPropertyName("delayed_data_check_config")]
	public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DelayedDataCheckConfig? DelayedDataCheckConfig { get; init; }
	[JsonInclude, JsonPropertyName("frequency")]
	public Elastic.Clients.Elasticsearch.Serverless.Duration? Frequency { get; init; }
	[JsonInclude, JsonPropertyName("indices")]
	public IReadOnlyCollection<string> Indices { get; init; }
	[JsonInclude, JsonPropertyName("indices_options")]
	public Elastic.Clients.Elasticsearch.Serverless.IndicesOptions? IndicesOptions { get; init; }
	[JsonInclude, JsonPropertyName("job_id")]
	public string JobId { get; init; }
	[JsonInclude, JsonPropertyName("max_empty_searches")]
	public int? MaxEmptySearches { get; init; }
	[JsonInclude, JsonPropertyName("query")]
	public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query Query { get; init; }
	[JsonInclude, JsonPropertyName("query_delay")]
	public Elastic.Clients.Elasticsearch.Serverless.Duration QueryDelay { get; init; }
	[JsonInclude, JsonPropertyName("runtime_mappings")]
	public IReadOnlyDictionary<string, Elastic.Clients.Elasticsearch.Serverless.Mapping.RuntimeField>? RuntimeMappings { get; init; }
	[JsonInclude, JsonPropertyName("script_fields")]
	public IReadOnlyDictionary<string, Elastic.Clients.Elasticsearch.Serverless.ScriptField>? ScriptFields { get; init; }
	[JsonInclude, JsonPropertyName("scroll_size")]
	public int ScrollSize { get; init; }
}